/*************************************************************************
    > File Name: resposity.h
    > Author: fanzhihui
    > Mail: 953106194@qq.com 
    > Created Time: 2019年07月04日 星期四 09时55分18秒
 ************************************************************************/
#ifndef _FTRACK_RESPOSITY_H_
#define _FTRACK_RESPOSITY_H_
#include "thread/tssproxy.h"
#include "redis/redis.h"

using namespace thread;

class Resposity
{
public:
	static Resposity* getInstance(){
		if(!instance){
			instance = new Resposity();
		}
		return instance;
	}

	TSSProxy<Redis>& getRedis(){
		return redis;
	}

private:
	Resposity();
	Resposity(const Resposity&);
	Resposity& operator=(const Resposity&);
	static Resposity* instance;


	TSSProxy<Redis> redis;
};

#endif


